import request from '@/utils/request'

// 教师登录
export async function teacherLogin(params) {
    return request('/api/teacher/login', {
        method: 'get',
        params
    })
}

export function getUserInfo(params) {
    return request('/api/teacher/getUserInfo', {
        method: 'get',
        params
    })
}

export function updatePassword(params) {
    return request('/api/teacher/updatePassword', {
        method: 'post',
        data: params
    })
}
export function updateName(params) {
    return request('/api/teacher/updateName', {
        method: 'post',
        data: params
    })
}

export function getAllUserInfo(params) {
    return request("/api/teacher/getAllUserInfo", {
        method: 'get'
    })
}

export function insertTeacher(params) {
    return request("/api/teacher/insertTeacher", {
        method: "post",
        data: params
    })
}

export function updateById(params) {
    return request("/api/teacher/updateById", {
        method: "post",
        data: params
    })
}
